<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 我发表过的评论 - LooPo-乐铺 </title>
<?php include VIEWS.'header.html'?>

<style type="text/css">
.tt{
    width: 96%;
    padding: 0;
}

.tt td{
    border-bottom: 1px dotted #CCCCCC;
    font-size: 12px;
}

.ti {
    line-height: 150%;
}
</style>

</head>

<body>
<?php include VIEWS.'topbar.html'?>

<div id="content">

    <?php include VIEWS.'leftnav.html'?>

    <div id="right">
    <h1>我发表过的评论</h1>

        <?php if(count($list)):?>
        <?php echo round_table('96%', '244890', 'white', 3, 3, 'top')?>
        <table class="tt" cellspacing="0">
        <tr class="ti" style="font-weight:bold;background-color:#244890;color:#FFF"><td>&nbsp;话题</td><td>关于</td><td nowrap>回应</td><td>最新回应</td></tr>
        <?php foreach ($list as $v):?>
        <tr class="ti"><td>&nbsp; <a title="<?php echo strip_tags($v['body'])?>" href="/comments.php/<?php echo $v['iid'].'#c'.$v['id']?>"> <?php echo utf8_substr(strip_tags($v['body']), 0, 20)?> </a></td><td><a href="/items.php/<?php echo $v['iid']?>"><?php echo $items[$v['iid']]['name']?></a></td><td nowrap><?php echo intval($comments[$v['iid']]['ct'])?></td><td nowrap><?php echo $comments[$v['iid']]['updated'] ? date('y/m/d H:i', $comments[$v['iid']]['updated']) : date('y/m/d H:i', $v['updated'])?></td></tr>
        <?php endforeach?>
        </table>

        <?php if($page['next']):?><div style="text-align:right;margin:0.8em"><a class="px12" tabindex="3" href=<?php echo $page['url']?>p=<?php echo $page['next']?>>更早的评论</a></div><?php endif?>

        <?php else:?>
        <div class="goodbox roundNormal">&nbsp;&nbsp;&nbsp;您没有发表过任何评论</div>
        <?php endif?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
